#include "Rectangle.h"

Rectangle::Rectangle(int width, int height)
{
	this->width = width;
	this->height = height;
}

int Rectangle::getWidth() const
{
	return width;
}

const Rectangle Rectangle::operator ++ (int)
{
	Rectangle temp(*this);
	width++;
	height++;
	return temp;
}

void Rectangle::setWidth(int width)
{
	this->width = width;
}

int Rectangle::getHeight() const
{
	return width;
}

void Rectangle::setHeight(int height)
{
	this->height = height;
}

Rectangle::Rectangle(const Rectangle & rect)
{
	this->width = rect.getWidth();
	this->height = rect.getHeight();
}

